﻿/**
 *	(C) 2014 Yuanjj
 *
 *	define net class
 *
 *	histroy
 * 		2014-08-06	Yuanjj		-	create
 */

#ifndef _NET_H_
#define _NET_H_

#include "typedef.h"
#include "define.h"
#include <QLibrary>

class cls_net
{
public:
    cls_net();
    ~cls_net();

protected:
    MUTEX_LOCK		m_lock;		// option data lock
    QLibrary		m_lib;

public:
    /**
     *	initialize the net object
     */
    pem_error_t 	instance();

    /**
     *	release the net object
     */
    pem_void_t 		release();

protected:
    /**
     *	load share library for net
     */
    pem_error_t 	_load_net_share_library( QString& path );
};

#endif // _NET_H_
